package org.darkforest.model;

import org.darkforest.enums.PdLogTypeEnum;

import java.math.BigDecimal;

public class PdLog {
    private Integer lgId;

    private Integer lgMemberId;

    private String lgMemberName;

    private String lgAdminName;

    private String lgType;

    private BigDecimal lgAvAmount;

    private BigDecimal lgFreezeAmount;

    private Integer lgAddTime;

    private String lgDesc;

    private Integer lgOrderId;

    private Integer lgOrderGoodsId;

    private BigDecimal lgBalance;

    private String lgTypeInfo;

    public BigDecimal getLgBalance() {
        return lgBalance;
    }

    public void setLgBalance(BigDecimal lgBalance) {
        this.lgBalance = lgBalance;
    }

    public Integer getLgOrderId() {
        return lgOrderId;
    }

    public void setLgOrderId(Integer lgOrderId) {
        this.lgOrderId = lgOrderId;
    }

    public Integer getLgId() {
        return lgId;
    }

    public void setLgId(Integer lgId) {
        this.lgId = lgId;
    }

    public Integer getLgMemberId() {
        return lgMemberId;
    }

    public void setLgMemberId(Integer lgMemberId) {
        this.lgMemberId = lgMemberId;
    }

    public String getLgMemberName() {
        return lgMemberName;
    }

    public void setLgMemberName(String lgMemberName) {
        this.lgMemberName = lgMemberName == null ? null : lgMemberName.trim();
    }

    public String getLgAdminName() {
        return lgAdminName;
    }

    public void setLgAdminName(String lgAdminName) {
        this.lgAdminName = lgAdminName == null ? null : lgAdminName.trim();
    }

    public String getLgType() {
        return lgType;
    }

    public void setLgType(String lgType) {
        this.lgType = lgType == null ? null : lgType.trim();
    }

    public BigDecimal getLgAvAmount() {
        return lgAvAmount;
    }

    public void setLgAvAmount(BigDecimal lgAvAmount) {
        this.lgAvAmount = lgAvAmount;
    }

    public BigDecimal getLgFreezeAmount() {
        return lgFreezeAmount;
    }

    public void setLgFreezeAmount(BigDecimal lgFreezeAmount) {
        this.lgFreezeAmount = lgFreezeAmount;
    }

    public Integer getLgAddTime() {
        return lgAddTime;
    }

    public void setLgAddTime(Integer lgAddTime) {
        this.lgAddTime = lgAddTime;
    }

    public String getLgDesc() {
        return lgDesc;
    }

    public void setLgDesc(String lgDesc) {
        this.lgDesc = lgDesc == null ? null : lgDesc.trim();
    }

    public Integer getLgOrderGoodsId() {
        return lgOrderGoodsId;
    }

    public void setLgOrderGoodsId(Integer lgOrderGoodsId) {
        this.lgOrderGoodsId = lgOrderGoodsId;
    }

    public String getLgTypeInfo() {
        String info ="";
        if(this.getLgType()!=null){
            PdLogTypeEnum pt = PdLogTypeEnum.getByValue(this.getLgType());
            info = pt.getText();
        }
        return info;
    }

    public void setLgTypeInfo(String lgTypeInfo) {
        this.lgTypeInfo = lgTypeInfo;
    }
}